package com.itheima.core.dao;

import java.util.List;

import com.itheima.core.po.Customer;

/**
 *	@author zangye03
 *	date Jul 15, 202110:07:46 PM
 *	Description	 
 *	Customer接口
 */

public interface CustomerDao {

	/**
	 * 客户列表
	 * @param customer
	 * @return
	 */
	public List<Customer> selectCustomerList(Customer customer);
	
	/**
	 * 客户数
	 * @param customer
	 * @return
	 */
	public Integer selectCustomerListCount(Customer customer);
	
	/**
	 * 创建客户
	 * @param customer
	 * @return
	 */
	public int createCustomer(Customer customer);

	/**
	 * 通过id查询客户
	 * @param id
	 * @return
	 */
	public Customer getCustomerById(Integer id);

	/**
	 * 更新客户信息
	 * @param customer
	 * @return
	 */
	public int updateCustomer(Customer customer);

	/**
	 * 删除客户
	 * @param id
	 * @return
	 */
	public int deleteCustomer(Integer id);
}
